import java.util.Scanner;

public class Grade {
        public static int levelin(int num) {
            int level = num;
            int ss = 0;
            if (level < 50 && level > 0) {
                ss = 1;
            } else if (level >= 50 && level < 200) {
                ss = 2;
            } else if (level >= 200 && level < 500) {
                ss = 3;
            } else if (level >= 500 && level < 800) {
                ss = 4;
            } else if (level >= 800 && level < 1300) {
                ss = 5;
            } else if (level >= 1300 && level < 2000) {
                ss = 6;
            } else if (level >= 2000) {
                ss = 7;
            } else {
                ss = 8;
            }
            return ss;
        }
     /*   public static void main(String[] args){
            Scanner scanner = new Scanner(System.in);
            System.out.println("请输入疫情数据：");
            int level = scanner.nextInt();
            scanner.close();
            int Level = levelin(level);
            if(Level!=0&&Level!=8){
                System.out.println("疫情等级"+Level);
            }
            else{
                System.out.println("请重新输入！");
            }
        } */
}


